package com.tl.boot.mapper.user;

import com.tl.boot.entity.login.domain.LoginRecordInfo;
import com.tl.boot.entity.permission.vo.PermissionInfoVO;
import com.tl.boot.entity.user.vo.UserBasicInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * com.tl.boot.mapper -- SysUserMapper
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/12 16:46
 */
@Component
@Mapper
public interface SysUserMapper {
    UserBasicInfoVO sysUserBasicInfo(@Param("username") String username);

    List<PermissionInfoVO> getPermissionInfo(@Param("userId") Long userId);

    void addLoginRecord(LoginRecordInfo loginRecordInfo);
}
